
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 11)

include_directories(${SRC_PATH}/IR)
include_directories(${SRC_PATH}/include)

file(GLOB_RECURSE OPTIMIZER_SRC ${SRC_PATH}/optimizer/*)

if(MNN_BUILD_SHARED_LIBS)
    add_library(optimizer SHARED ${OPTIMIZER_SRC})
else()
    add_library(optimizer STATIC ${OPTIMIZER_SRC})
endif()
target_link_libraries(optimizer MNN_Express MNN)

if (MSVC OR WIN32)
    target_compile_options(optimizer PRIVATE "/wd4267")
endif()
